//
//  AuthOperator.h
//  CToolBox
//
//  Created by 张吉旭 on 17/2/7.
//  Copyright © 2017年 yj. All rights reserved.
//

#import "BaseOperator.h"

//#import "DTOUserIdentityModel.h"
#import "DTOError.h"
/**
 登录平台

 - LoginPlatformTypePC: pc端
 - LoginPlatformTypeWeb: web网页端
 - LoginPlatformTypeApp: app端
 - LoginPlatformTypeOfficialAccount: 微信公众号
 - LoginPlatformTypeWeChatLittleApp: 微信小程序
 */
typedef NS_ENUM(NSInteger, LoginPlatformType) {
    LoginPlatformTypePC = 1,
    LoginPlatformTypeWeb,
    LoginPlatformTypeApp,
    LoginPlatformTypeOfficialAccount,
    LoginPlatformTypeWeChatLittleApp
};


/**
获取验证码方式

 - FetchASMSCodeWayNone: 不发送验证码
 - FetchASMSCodeWayMessage: 短信验证码
 - FetchASMSCodeWayVoice: 语音播报验证
 */
typedef NS_ENUM(NSInteger, FetchASMSCodeWay) {
    FetchASMSCodeWayNone,
    FetchASMSCodeWayMessage,
    FetchASMSCodeWayVoice,
};


@interface AuthOperator : BaseOperator

#pragma mark -----------------------yy-------------------
// 登陆
- (void)postApplogin:(NSDictionary *)userInfo tag:(id)tag successBlock:(succeedBlock)successBlock failureBlock:(failureBlock)failureBlock;

@end
